package com.linQing.waterWork.modle.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
//@EndTimeAfterStartTime
public class PageEventHistoryDto implements Serializable {


    @ApiModelProperty(value = "报警开始时间")
    private Date startTime;

    @ApiModelProperty(value = "报警结束时间")
    private Date endTime;
    /**
     * 报警类型
     */
    @ApiModelProperty(value = "报警信息")
    private String eventMessage;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id", required = true)
    private String EquipmentID;

    /**
     * 报警等级
     */
    @ApiModelProperty(value = "报警等级(1:严重,2:一般,不填则查全部)")
    private Integer eventLevel;

    /**
     * 处理状态
     */
    @ApiModelProperty(value = "处理状态")
    private Integer state;


    @ApiModelProperty(value = "分页页数", required = true)
//    @Min(value = 1, message = "分页页数不能小于1")
    private int pageNum;

    @ApiModelProperty(value = "分页条数", required = true)
//    @Min(value = 1, message = "分页页数不能小于1")
    private int PageSize;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
